Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Chat(val id: Long, val type: ChatType, val title: String? = null, val username: String? = null, val firstName: String? = null, val lastName: String? = null, val isForum: Boolean? = null, val photo: ChatPhoto? = null, val activeUsernames: List<String>? = null, val birthdate: Birthdate? = null, val businessIntro: BusinessIntro? = null, val businessLocation: BusinessLocation? = null, val businessOpeningHours: BusinessOpeningHours? = null, val personalChat: Chat? = null, val availableReactions: List<ReactionType>? = null, val accentColorId: Int? = null, val backgroundCustomEmojiId: String? = null, val profileAccentColorId: Int? = null, val profileBackgroundCustomEmojiId: String? = null, val emojiStatusCustomEmojiId: String? = null, val emojiStatusExpirationDate: Instant? = null, val bio: String? = null, val hasPrivateForwards: Boolean? = null, val hasRestrictedVoiceAndVideoMessages: Boolean? = null, val joinToSendMessages: Boolean? = null, val joinByRequest: Boolean? = null, val description: String? = null, val inviteLink: String? = null, val pinnedMessage: Message? = null, val permissions: ChatPermissions? = null, val slowModeDelay: Int? = null, val unrestrictBoostCount: Int? = null, val messageAutoDeleteTime: Int? = null, val hasProtectedContent: Boolean? = null, val hasVisibleHistory: Boolean? = null, val stickerSetName: String? = null, val canSetStickerSet: Boolean? = null, val customEmojiStickerSetName: String? = null, val linkedChatId: Long? = null, val location: ChatLocation? = null, val hasHiddenMembers: Boolean? = null, val hasAggressiveAntiSpamEnabled: Boolean? = null)

This object represents a chat.

Link copied to clipboard
@Serializable
enum ChatAction : Enum<ChatAction>
Link copied to clipboard
@Serializable
data class ChatAdministratorRights(val isAnonymous: Boolean, val canManageChat: Boolean, val canDeleteMessages: Boolean, val canRestrictMembers: Boolean, val canPromoteMembers: Boolean, val canChangeInfo: Boolean, val canInviteUsers: Boolean, val canPostMessages: Boolean? = null, val canEditMessages: Boolean? = null, val canPinMessages: Boolean? = null, val canManageTopics: Boolean? = null, val canPostStories: Boolean? = null, val canEditStories: Boolean? = null, val canDeleteStories: Boolean? = null)

Represents the rights of an administrator in a chat.

Link copied to clipboard
@Serializable
data class ChatInviteLink(val inviteLink: String, val creator: User, val createsJoinRequest: Boolean, val isPrimary: Boolean, val isRevoked: Boolean, val name: String? = null, val expireDate: Instant? = null, val memberLimit: Int? = null, val pendingJoinRequestCount: Int? = null)

Represents an invite link for a chat.

Link copied to clipboard
@Serializable
data class ChatJoinRequest(val chat: Chat, val from: User, val userChatId: Long, val date: Instant, val bio: String? = null, val inviteLink: ChatInviteLink? = null)

Represents a join request sent to a chat.

Link copied to clipboard
@Serializable
data class ChatLocation(val location: LocationContent, val address: String)

Represents a location to which a chat is connected.

Link copied to clipboard
@Serializable
sealed class ChatMember : MultipleResponse
Link copied to clipboard
@Serializable
data class ChatMemberUpdated(val chat: Chat, val from: User, val date: Instant, val oldChatMember: ChatMember, val newChatMember: ChatMember, val inviteLink: ChatInviteLink? = null, val viaChatFolderInviteLink: Boolean? = null)

This object represents changes in the status of a chat member.

Link copied to clipboard
@Serializable
data class ChatPermissions(var canSendMessages: Boolean? = null, var canSendAudios: Boolean? = null, var canSendDocuments: Boolean? = null, var canSendPhotos: Boolean? = null, var canSendVideos: Boolean? = null, var canSendVideoNotes: Boolean? = null, var canSendVoiceNotes: Boolean? = null, var canSendPolls: Boolean? = null, var canSendOtherMessages: Boolean? = null, var canAddWebPagePreviews: Boolean? = null, var canChangeInfo: Boolean? = null, var canInviteUsers: Boolean? = null, var canPinMessages: Boolean? = null, var canManageTopics: Boolean? = null)

Describes actions that a non-administrator user is allowed to take in a chat.

Link copied to clipboard
@Serializable
data class ChatPhoto(val smallFileId: String, val smallFileUniqueId: String, val bigFileId: String, val bigFileUniqueId: String)

This object represents a chat photo.

Link copied to clipboard
@Serializable
data class ChatShared(val requestId: Int, val chatId: Long, val title: String? = null, val username: String? = null, val photo: List<PhotoSize>? = null)

This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.

Link copied to clipboard
@Serializable
enum ChatType : Enum<ChatType>